package com.th.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.th.common.enums.PaymentMethodType;
import com.th.common.enums.TransactionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author 第五组
 * @Description TODO
 * @createTime 2023-06-24 16:37
 */
@Data
@ApiModel("钱包交易表")
@TableName("us_wallet_transaction")
public class UsWalletTransaction {
    @ApiModelProperty("交易id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("钱包id")
    private Long walletId;

    /**
     * {@link PaymentMethodType}
     */
    @ApiModelProperty("支付方式")
    private Integer paymentMethod;

    @ApiModelProperty("交易金额")
    private double amountMoney;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("交易款项")
    private String paymentInfo;

    /**
     * {@link TransactionType}
     */
    @ApiModelProperty("交易状态")
    private Integer status;

    /**
     * {@link TransactionType}
     */
    @ApiModelProperty("交易类型")
    private Integer type;
}
